package com.jemmyee.pizza.service;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.criterion.DetachedCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.jemmyee.core.dao.Page;
import com.jemmyee.pizza.dao.IBuckleDao;
import com.jemmyee.pizza.entity.Buckle;
@Repository("buckleService")
public class BuckleServiceImpl implements IBuckleService<Buckle> {
	private static final Log log = LogFactory.getLog(BuckleServiceImpl.class);
	@Autowired
	private IBuckleDao buckleDao;
	public void delete(Buckle entity) {
		buckleDao.delete(entity);
	}

	public void deleteAll(List<Buckle> list) {
		// TODO Auto-generated method stub

	}

	public void deleteById(Serializable id) {
		// TODO Auto-generated method stub

	}

	public List<Buckle> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	public List<Buckle> findByCriteria(DetachedCriteria criteria) {
		// TODO Auto-generated method stub
		return buckleDao.findByCriteria(criteria);
	}

	public Buckle findById(Serializable id) {
		// TODO Auto-generated method stub
		return buckleDao.findById(id);
	}

	public List<Buckle> findByProperty(String propertyName, Object value) {
		// TODO Auto-generated method stub
		return null;
	}

	public Page findPageByCriteria(DetachedCriteria detachedCriteria,
			int pageSize, int startIndex,String order) {
		// TODO Auto-generated method stub
		return buckleDao.findPageByCriteria(detachedCriteria, pageSize, startIndex, order);
	}

	public void save(Buckle entity) {
		buckleDao.save(entity) ;

	}

	public void update(Buckle entity) {
		// TODO Auto-generated method stub
		buckleDao.update(entity);
	}

}
